package cn.yunhe.action;

import cn.yunhe.service.DelAdminService;
import cn.yunhe.util.BaseUtil;
import lombok.Data;

@Data
public class DelAdminAction extends BaseUtil {
    private int id;
    public String execute(){
        DelAdminService delAdminService=new DelAdminService();
        int flag=delAdminService.delAdmin(id);
        if (flag>0)
            return "success";
        else
            return "fail";
    }
}
